package com.xuelang.pipeline.client.task.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author xiwen.zxg
 * @since 2024/6/11
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TaskFieldFormDTO {

    private String field;
    private String label;
    @Builder.Default
    private Integer labelWidth = 80;
    @Builder.Default
    private Boolean required = true;
    @Builder.Default
    private TaskColPropsFormDTO colProps = new TaskColPropsFormDTO();
    @Builder.Default
    private String component = "Input";
    @Builder.Default
    private Boolean editable = true;
    @Builder.Default
    private String placeholder = "";
    @Builder.Default
    private String defaultValue = "";
    @Builder.Default
    private String rules = "";
    @Builder.Default
    private String description = "";

}
